package com.shuziren.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.Date;

@Data
@TableName("interview_record")
public class InterviewRecord{
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("candidate_id")
    @Min(value = 0, message = "候选人id 必须至少为0")
    private Integer candidateId;

    @TableField("position_id")
    @Min(value = 0, message = "职位id 必须至少为0")
    private Integer positionId;

    @TableField("person_id")
    @Min(value = 0, message = "面试官id 必须至少为0")
    private Integer personId;

    @TableField("schedule_id")
    @Min(value = 0, message = "面试安排id 必须至少为0")
    private Integer scheduleId;

    @TableField("score")
    @Min(value = 1, message = "评分 至少为1")
    @Max(value = 10, message = "评分 不能超过10")
    private Integer score;

    @TableField("comments")
    @Size(max = 255, message = "长度不能超过255")
    private String comments;

    @TableField("created_at")
    private Date createdAt;

    @TableField("updated_at")
    private Date updatedAt;


}
